package com.mebs.model.inventory;

import org.jt.jet.content.JetNamedObject;

/**
 * User: epb
 * Date: 01.12.2008
 * Time: 16:08:49
 */
public enum PurchaseOrderDocReportType  implements JetNamedObject {
	COMMERCIAL_INVOICE(1, "commercial_invoice", "Commercial Invoice"),
	PACKING_LIST(2, "packing_list", "Packing List"),
	VALUED_INVENTORY(3, "valued_inventory", "Valued Inventory");

	public final int type;
	public final String name;
	public final String title;

	PurchaseOrderDocReportType(int type, String name, String title)
	{
		this.type = type;
		this.name = name;
		this.title = title;
	}

	public static PurchaseOrderDocReportType getObjectByType(int type)
	{
		return PurchaseOrderDocReportType.values()[type - 1];
	}

	public Object getObjectId()
	{
		return type;
	}

	public String getObjectName()
	{
		return name;
	}

	public int getType()
	{
		return type;
	}

	public String getName()
	{
		return name;
	}

	public String getTitle()
	{
		return title;
	}

	public String toString()
	{
		return name;
	}
}
